<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
      
        <li class="active"><a href="">列表</a></li>

    </ul>
    <form class="well form-inline margin-top-20" method="post" action="">
        时间:
        <input type="text" class="form-control js-bootstrap-date" name="create_time"
               value="{$Request.param.create_time|default=''}"
               style="width: 140px;" autocomplete="off">&nbsp; &nbsp;
        
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="">清空</a>
    </form>
    <form method="post" class="js-ajax-form margin-top-20" action="{:url('TemplateGroup/sort')}">
        <div class="table-actions">
           <!--  <button class="btn btn-primary btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
           <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
                   data-action="{:url('TemplateGroup/sets',array('status'=>1))}" data-subcheck="true">启用
           </button> -->
          
        </div>
        
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x"
                                             data-checklist="js-check-x"></label></th>
                
                <th>下发时间</th>
                <th>操作人</th>
				<th>活动班组</th>
                <th>学生数量</th>
               
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.record_class_id}"></td>
                    <td>{$vo.create_time}</td>
                    <td>{$vo.teacher.appuser.realName}</td>
					<td>{$vo.classs.class_name}</td>
                    <td>{$vo.count}</td>
                   
                </tr>
            </foreach>
            </tbody>
            <tfoot>
             <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x"
                                             data-checklist="js-check-x"></label></th>
                 <th>下发时间</th>
                <th>操作人</th>
                <th>活动班组</th>
                <th>学生数量</th>
               
            </tfoot>
        </table>
        <!-- <div class="table-actions">
            <button class="btn btn-primary btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
            <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
                    data-action="{:url('TemplateGroup/sets',array('status'=>1))}" data-subcheck="true">启用
            </button>
            <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
                    data-action="{:url('TemplateGroup/sets',array('status'=>2))}" data-subcheck="true">停用
            </button>
        </div> -->
         <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    function look(id){
        openIframeLayer("/teacher/Template_group/look/group_id/"+id, '预览', {
            area: ['40%', '90%'],
        });
    }
    $('.add').click(function(){
        var vals = [];
        $('input:checkbox:checked').each(function (index, item) {
            var value = $(this).val();
            if(value != 'on'){
                vals.push(value);
            }
        });

        vals = vals.join(',');
        if (vals == '') {
            alert('请选中套件');return false;
        }
        window.location.href = 'http://'+window.location.host+'/teacher/record/add?vals='+vals;
    });
</script>
</body>
</html>